import java.util.Objects;

public class Person {
    public String id;
    public int age;
    public Person(String id,int age){
        this.id=id;
        this.age=age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Person person = (Person) o;
        return age == person.age && Objects.equals(id, person.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, age);
    }
}
